/**
 * Name: DuckHuntMain
 * @author Zhongtian Jiang
 * @version 1.0
 * This is a class to display DuckHuntPanel
 */
import javax.swing.JFrame;
import javax.swing.JPanel;

/**
 * @author Master
 * @version $Revision: 1.0 $
 */
public class DuckHuntMain {
	/**
	 * Field TEN.
	 * (value is 10)
	 */
	private static final int TEN = 10;

	/**
	 * Method toString.
	
	 * @return String */
	@Override
	public String toString() {
		return "DuckHuntMain []";
	}
	
	/**
     * main method to run the whole program
    
     */
	public static JFrame Frame=null;
	
	/**
	 * Field flag.
	 */
	public static boolean Flag=false;
	
	/**
	 * Method run.
	 */
	public static void run(){
		Flag=false;
		Frame=new JFrame();
		Frame.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
		final JPanel panel=new DuckHuntPanel(TEN, TEN);
		Frame.getContentPane().add(panel);
		Frame.toFront();
		Frame.pack();
		Frame.setVisible(true);
	}
}

